/**
 *  master - masterGlobal
 */
let initState = () => ({ ...window?.masterGlobalState });

export default {
  namespace: 'masterGlobal',
  state: { ...initState() },
  effects: {},

  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState(), ...action.payload };
    },
  },
};
